package ca.usherbrooke.domus.sipnmove2.controller.phone;

import ca.usherbrooke.domus.sipnmove2.controller.ActionController;
import ca.usherbrooke.domus.sipnmove2.model.phone.Phone;

/**
 * New call controller
 */
public class QuitActionController implements ActionController {

	/**
	 * Phone to control
	 */
	private Phone phone;

	/**
	 * Default constructor
	 * 
	 * @param phone
	 */
	public QuitActionController(Phone phone) {
		this.phone = phone;
	}

	/**
	 * Do the controller action
	 */
	public void doAction()
	{
		phone.quit();
	}
	
}
